package mysql

import "gorm.io/gorm"

type Shop struct {
	gorm.Model
	Name  string  `gorm:"type:varchar(30)"`
	Price float64 `gorm:"decimal(10,2)"`
	Num   int     `gorm:"type:int(10)"`
}

type KuCun struct {
	gorm.Model
	ShopId int `gorm:"type:int(10)"`
	KuNum  int `gorm:"type:int(10)"`
}

type Car struct {
	gorm.Model
	UserId  int `gorm:"type:int(10)"`
	ShopId  int `gorm:"type:int(10)"`
	KuCunId int `gorm:"type:int(10)"`
	KuNum   int `gorm:"type:int(10)"`
}
